package com.xxx.common.utils;

public class ResultUtil {


        public static Result success(Integer code, String msg, Object object) {
            Result result = new Result();
            result.setCode(code);
            result.setMsg(msg);
            result.setData(object);
            return result;
        }
    
        public static Result successForDataAndImage(Integer code, String msg, Object object, String baseUrl) {
            Result result = new Result();
            result.setCode(code);
            result.setMsg(msg);
            result.setData(object);
            result.setBaseUrl(baseUrl);
            return result;
        }
    
        public static Result error(Integer code, String msg) {
            Result result = new Result();
            result.setCode(code);
            result.setMsg(msg);
            return result;
        }
}
